package com.risk.kernel.domain;

import com.risk.common.annotation.Excel;
import com.risk.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author: Liwen
 * @createTime: 2025/1/7
 * @description:
 */
public class TkTaskCase extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用例id
     */
    private String id;

    /**
     * 用例名称
     */
    @Excel(name = "用例名称")
    private String caseName;

    /**
     *
     */
    private String taskId;

    /**
     * 用例总条数
     */
    @Excel(name = "用例总条数")
    private Long caseTotal;

    /**
     * 状态:0:未执行，1：执行中，2：执行成功3，执行失败
     */
    @Excel(name = "状态")
    private Integer caseStatus;

    public void setId(String id) {
        this.id = id;
    }
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getId() {
        return id;
    }
    public String getTaskId() {
        return taskId;
    }

    public void setCaseName(String caseName) {
        this.caseName = caseName;
    }

    public String getCaseName() {
        return caseName;
    }

    public void setCaseTotal(Long caseTotal) {
        this.caseTotal = caseTotal;
    }

    public Long getCaseTotal() {
        return caseTotal;
    }

    public void setCaseStatus(Integer caseStatus) {
        this.caseStatus = caseStatus;
    }

    public Integer getCaseStatus() {
        return caseStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("caseName", getCaseName())
                .append("caseTotal", getCaseTotal())
                .append("caseStatus", getCaseStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}
